﻿CREATE TABLE [dbo].[Messages] (
    [MessageId]      INT            IDENTITY (1, 1) NOT NULL,
    [InboxType]      INT            NOT NULL,
    [Sender]         INT            NOT NULL,
    [Recipient]      INT            NOT NULL,
    [Header]         NVARCHAR (50)  NOT NULL,
    [Text]           NVARCHAR (MAX) NOT NULL,
    [SendTime]       DATETIME       NOT NULL,
    [Priority]       INT            NOT NULL,
    [RecReadMsgDate] DATETIME       NULL
);

